Optimal. Leaf size=99 \[ \frac{\tan ^5(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (n p+5)}+\frac{2 \tan ^3(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (n p+3)}+\frac{\tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (n p+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.134914, antiderivative size = 99, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {3659, 2607, 270} \[ \frac{\tan ^5(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (n p+5)}+\frac{2 \tan ^3(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (n p+3)}+\frac{\tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (n p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3659
Rule 2607
Rule 270
Rubi steps
\begin{align*} \int \sec ^6(e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx &=\left ((c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \int \sec ^6(e+f x) (c \tan (e+f x))^{n p} \, dx\\ &=\frac{\left ((c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \operatorname{Subst}\left (\int (c x)^{n p} \left (1+x^2\right )^2 \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac{\left ((c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \operatorname{Subst}\left (\int \left ((c x)^{n p}+\frac{2 (c x)^{2+n p}}{c^2}+\frac{(c x)^{4+n p}}{c^4}\right ) \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac{\tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (1+n p)}+\frac{2 \tan ^3(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (3+n p)}+\frac{\tan ^5(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (5+n p)}\\ \end{align*}
Mathematica [A] time = 2.14253, size = 122, normalized size = 1.23 \[ \frac{\cot (e+f x) \left (b (c \tan (e+f x))^n\right )^p \left (\tan ^2(e+f x) \sec ^4(e+f x) \left (2 (n p+3) \cos (2 (e+f x))+\cos (4 (e+f x))+n^2 p^2+6 n p+8\right )+8 \left (-\tan ^2(e+f x)\right )^{\frac{1}{2} (1-n p)}\right )}{f (n p+1) (n p+3) (n p+5)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.532, size = 0, normalized size = 0. \begin{align*} \int \left ( \sec \left ( fx+e \right ) \right ) ^{6} \left ( b \left ( c\tan \left ( fx+e \right ) \right ) ^{n} \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.25765, size = 143, normalized size = 1.44 \begin{align*} \frac{\frac{b^{p}{\left (c^{n}\right )}^{p}{\left (\tan \left (f x + e\right )^{n}\right )}^{p} \tan \left (f x + e\right )^{5}}{n p + 5} + \frac{2 \, b^{p}{\left (c^{n}\right )}^{p}{\left (\tan \left (f x + e\right )^{n}\right )}^{p} \tan \left (f x + e\right )^{3}}{n p + 3} + \frac{b^{p}{\left (c^{n}\right )}^{p}{\left (\tan \left (f x + e\right )^{n}\right )}^{p} \tan \left (f x + e\right )}{n p + 1}}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.49455, size = 266, normalized size = 2.69 \begin{align*} \frac{{\left (n^{2} p^{2} + 8 \, \cos \left (f x + e\right )^{4} + 4 \,{\left (n p + 1\right )} \cos \left (f x + e\right )^{2} + 4 \, n p + 3\right )} e^{\left (n p \log \left (\frac{c \sin \left (f x + e\right )}{\cos \left (f x + e\right )}\right ) + p \log \left (b\right )\right )} \sin \left (f x + e\right )}{{\left (f n^{3} p^{3} + 9 \, f n^{2} p^{2} + 23 \, f n p + 15 \, f\right )} \cos \left (f x + e\right )^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]